import request from '@/utils/request'
const api_name = `/api/hosp/hospital`
export default {
    //查询医院列表
    getPageList(pageNum, pageSize, searchObj) {
        return request({
            url: `${api_name}/findHospList/${pageNum}/${pageSize}`,
            method: 'get',
            params: searchObj
        })
        console.log("111")
    },
    //根据医院名称模糊查询
    getByHosname(hosname){
        return request({
            url: `${api_name}/findHospByHosName/${hosname}`,
            method:'get'
        })
    },
    //根据医院编号获取医院详情
    show(hoscode){
        return request({
            url:`${api_name}/getParticulars/${hoscode}`,
            method:'get'
        })
    },
    //根据医院编号查询科室
    findDepartment(hoscode){
        return request({
            url:`${api_name}/getDepartment/${hoscode}`,
            method:'get'
        })
    }
}